package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HelloworldApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloworldApplication.class, args);
    }

}

public class Sample {

    public int add(int a, int b) {
        return a + b;
    }

    public int sum(int x, int y) {
        return x + y;
    }

    public void hello(string name) {
        if (!name.isEmpty()) {
            System.out.println("Hello, " + name);
        }
    }
}
